export interface LogItemState {
  type: string;
  log?: string;
  method?: string;
  url?: string;
  content_type?: string;
  body?: string | number | boolean | unknown[] | Record<string, unknown> | null;
}

export class GenericHttpReceiveServiceState {
  ip_list: string[] = [];
  receive_service_info: {
    ip: string;
    port: string;
    enable: boolean;
  } = {
    ip: '',
    port: '8080',
    enable: false
  };
  server?: {
    close: () => void;
  };
  log_list: LogItemState[] = [];
}
